<?
$this->load->helper('url');
$action_url = site_url() . "/bb_event/$action/";

?>

<h2>Enter bb_event Details</h2>

<form name="bb_eventdetails" id="bb_eventdetails" method="POST" action="<?= $action_url; ?>">
<input type='hidden' name='id' id='id' value='<?= $id; ?>' >
<table cellspacing="2" cellpadding="2" border="0" width="100%">
	<tr valign='top' height='20'>

            <td align='right'> <b> id:  </b> </td>

            <td>
               <?= $id; ?>
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> Title:  </b> </td>

            <td>
               <input type='text' name='Title' id='Title' value='<?= $Title; ?>' />
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> Info:  </b> </td>

            <td>
               <textarea cols=35 rows=7 NAME='Info' id='Info' ><?= $Info; ?></textarea>
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> postcode_id:  </b> </td>

            <td>
               <select name="postcode_id" id="postcode_id" >
				<option value="">Choose Places_postcode</option><?
			 foreach ($places_postcodelist as $places_postcode) {
				$lookupid   = $places_postcode["code"];
				$lookuptext   = $places_postcode["code"];
?>
				<option value="<?= $lookupid; ?>" <?= ($lookupid == $postcode_id)?"selected=selected":""; ?> ><?= $lookuptext; ?></option>
<?			 } ?>
			</select>

            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> bids_id:  </b> </td>

            <td>
               <select name="bids_id" id="bids_id" >
				<option value="">Choose Bb_bids</option><?
			 foreach ($bb_bidslist as $bb_bids) {
				$lookupid   = $bb_bids["id"];
				$lookuptext   = $bb_bids["Percent"];
?>
				<option value="<?= $lookupid; ?>" <?= ($lookupid == $bids_id)?"selected=selected":""; ?> ><?= $lookuptext; ?></option>
<?			 } ?>
			</select>

            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> Map:  </b> </td>

            <td>
               <input type='text' name='Map' id='Map' value='<?= $Map; ?>' />
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> Website:  </b> </td>

            <td>
               <input type='text' name='Website' id='Website' value='<?= $Website; ?>' />
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> Starts:  </b> </td>

            <td>
               <input type='text' name='Starts' id='Starts' value='<?= $Starts; ?>' />
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> Ends:  </b> </td>

            <td>
               <input type='text' name='Ends' id='Ends' value='<?= $Ends; ?>' />
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> Active:  </b> </td>

            <td>
               <input name='Active' id='Active' type='radio' value='' />
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> updated:  </b> </td>

            <td>
               <?= $updated; ?>
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> added:  </b> </td>

            <td>
               <?= $added; ?>
            </td>
         </tr>
	<tr valign='top' height='20'>

            <td align='right'> <b> vehicle_id:  </b> </td>

            <td>
               <select name="vehicle_id" id="vehicle_id" >
				<option value="">Choose Bb_vehicle</option><?
			 foreach ($bb_vehiclelist as $bb_vehicle) {
				$lookupid   = $bb_vehicle["id"];
				$lookuptext   = $bb_vehicle["Title"];
?>
				<option value="<?= $lookupid; ?>" <?= ($lookupid == $vehicle_id)?"selected=selected":""; ?> ><?= $lookuptext; ?></option>
<?			 } ?>
			</select>

            </td>
         </tr>


</table>

<input type="submit" name="Submit" value="Save">
<input type="reset" name="resetForm" value="Clear Form">

</form>